package com.newsnetwork.files.service;

import org.springframework.web.multipart.MultipartFile;

/**
 * @author DingNing
 * @date 2022/11/7 10:18
 * @Description: 文件操作
 */
public interface UploaderService {

    /**
     * 使用fastdfs上传文件
     */
    String uploadFdfs(MultipartFile file, String fileExtName) throws Exception;

    /**
     * 使用OSS上传文件
     */
    String uploadOSS(MultipartFile file, String userId, String fileExtName) throws Exception;

}
